<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<script language="JavaScript">
    function validate_form(){
        if ( document.AccountForm.kode.value == "" ){
            alert ( "<bean:message key="account.kode"/> "+isEmpty);
        }else if ( document.AccountForm.nama.value == "" ){
            alert ( "<bean:message key="account.nama"/> "+isEmpty);
        }else if ( document.AccountForm.alamat.value == "" ){
            alert ( "<bean:message key="account.alamat"/> "+isEmpty);
        }else if ( document.AccountForm.telp.value == "" ){
            alert ( "<bean:message key="account.telp"/> "+isEmpty);
        }else if ( document.AccountForm.statusJabatan.value == "" ){
            alert ( "<bean:message key="account.jabatan"/> "+isEmpty);
        }else{
            document.AccountForm.submit();
        }
    }

    function validate_Card_form(){
        if ( document.AccountForm.namaCard.value == "" ){
            alert ( "<bean:message key="account.nama"/> "+isEmpty);
        }else if ( document.AccountForm.noCard.value == "" ){
            alert ( "<bean:message key="account.kartu"/> "+isEmpty);
        }else{
            document.AccountForm.submit();
        }
    }

    function validate_Relation_form(){
        if ( document.AccountForm.namaRelation.value == "" ){
            alert ( "<bean:message key="account.nama"/> <bean:message key="account.relasi"/> "+isEmpty);
        }else if ( document.AccountForm.umur.value == "" ){
            alert ( "<bean:message key="account.umur"/> "+isEmpty);
        }else if ( document.AccountForm.relasi.value == "" ){
            alert ( "<bean:message key="account.relasi"/> "+isEmpty);
        }else{
            document.AccountForm.submit();
        }
    }
</script>


